package pers.xhh.shopapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import pers.xhh.shopapi.common.Mi;
import pers.xhh.shopapi.entity.MiOrderEntity;

/**
 * @author wei-xhh
 * @date 2020-11-22
 */
public interface MiOrderService extends IService<MiOrderEntity> {

    /**
     * 更新订单状态
     * @param orderId
     * @param code
     */
    Mi updateOrderStatus(Integer orderId, int code);

    /**
     * 获取订单
     * @return
     */
    Mi allOrder(Integer pagenum, Integer pagesize);

    /**
     * 取消订单/删除订单
     * @param orderId
     * @return
     */
    Mi cancelOrder(Integer orderId);
}
